# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=bsqlinjector
pkgver=14.98c8ce8
pkgrel=3
groups=('blackarch' 'blackarch-webapp' 'blackarch-exploitation')
pkgdesc='Blind SQL injection exploitation tool written in ruby.'
arch=('any')
url='https://github.com/enjoiz/BSQLinjector'
license=('custom:unknown')
depends=('ruby')
makedepends=('git')
source=("$pkgname::git+https://github.com/enjoiz/BSQLinjector.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -Dm 755 BSQLinjector.rb "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}

